import request from '@/utils/request/requestServer'
const apiPrefix= '/prod-api'

/**
 * 历史回放线路车辆查询接口
 * @param query
 * @returns {*}
 */
export function getHistoryBusListByRouteApi(query) {
  return request({
    url: apiPrefix +'/hibcp-gis/history/getBusListByRoute',
    method: 'post',
    data: query
  });
}

/**
 * 历史回放接口
 * @param query
 * @returns {AxiosPromise}
 */
export function getHistoryInfoByBusListApi(query){
  return request({
    url:apiPrefix+'/hibcp-gis/history/getHistoryInfoByBusList',
    method: 'post',
    data: query
  });
}

/**
 * 线路站点关系
 * @param query
 * @returns {AxiosPromise}
 */
export function getRouteStationLineApi(query){
  return request({
    url:apiPrefix+'/hibcp-base-data/route/getRouteStationLine',
    method: 'get',
    params: query
  });
}

/**
 * 根据子线Id 获取站点列表
 */
export function getSubRouteStationListApi(query) {
  return request({
    url: apiPrefix +'/hibcp-base-data/station/getSubRouteStationList',
    method: 'post',
    data: query
  });
}

